package cn.onein.edu.web.service;

import java.util.List;

import cn.onein.edu.biz.bean.Product;
import cn.onein.edu.biz.bean.User;
import cn.onein.edu.biz.bean.UserTemp;
import cn.onein.edu.common.ProductType;


public interface UserService {

	public abstract Long getActionCategoryId(Integer age,Boolean sex);
	
	public abstract void saveRegisterUser(User user);
	
	public abstract Boolean getEmail(String email);
	
	public abstract List<Product> getProductByType(ProductType pType);
	
	public abstract User getUserByName(String name);
	
	public abstract User getUserByEmail(String email);
	
	public abstract void updateUser(User user,UserTemp userTemp);
	
	public abstract User getUserById(Long id);
	
	public abstract void updateUserPassword(Long id,String password);
	
	public abstract void updateUserExtendInfo(User user,User oldUser);
	
	public abstract void saveUserTemp(UserTemp userTemp);
	
	public abstract UserTemp getUserTempByUUID(String uuid);
	
	public abstract void updateUserEmailByUserId(String uuid,String email,Long userId);
}
